package com.ruoyi.car.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆详情图片（详情页轮播图）对象 t_car_image
 * 
 * @author yby
 * @date 2025-09-02
 */
public class CarImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    private Long id;

    /** 关联车辆ID（t_car_info.id） */
    @Excel(name = "关联车辆ID", readConverterExp = "t=_car_info.id")
    private Long carId;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String imageUrl;

    /** 轮播图排序号 */
    @Excel(name = "轮播图排序号")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("imageUrl", getImageUrl())
            .append("sort", getSort())
            .toString();
    }
}
